//============================================================================
// Name        : DocumentFeatures.h
// Author      : lucmir@dcc.ufmg.br
// Description :
//============================================================================

#ifndef __DOCUMENT_FEATURES_H__
#define __DOCUMENT_FEATURES_H__

#include <stdio.h>
#include <string>
#include <iostream>
#include <map>
#include <fstream>
#include <sstream>

#include "index/AnchorText.h"


class DocumentFeatures {

	// Document page rank values
	std::map<unsigned int, double> pageRanks;

	AnchorText anchorText;


	public:

		DocumentFeatures();
		~DocumentFeatures();

		bool readPageRanks(std::string inFileName);
		double getPageRank(unsigned int docId);

		bool readAnchorTexts(std::string inFileName);
		unsigned int containsAnchorText(unsigned int termId, unsigned int docId);
};

#endif
